package com.nuoniu.sibanyun.mapper.production;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.production.VProcedurePriceDetail;
import com.nuoniu.sibanyun.entity.vo.ProcedureLastPriceVo;

import java.util.List;

/**
 * <p>
 * 工序工价明细表 Mapper 接口
 * </p>
 *
 * @author 白强
 * @since 2021-08-14
 */
public interface VProcedurePriceDetailMapper extends BaseMapper<VProcedurePriceDetail> {
    /**
     * 查询工序最新价格
     * @param productionId          产品ID
     * @param routeDetailId         工艺路线_工序明细ID
     * @return
     */
    VProcedurePriceDetail getByProductionIdAndRouteDetailId(Integer productionId, Integer routeDetailId);

    /**
     * 根据工序ID 查询 最新工价
     * @param procedureIds
     * @return
     */
    List<ProcedureLastPriceVo> listProcedureLastPriceVo(String procedureIds);

}
